package com.blb.community.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blb.community.entity.ZyUnit;
import com.blb.community.entity.vo.UnitVO;

import java.util.List;

/**
 * <p>
 * 单元  服务类
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
public interface IZyUnitService extends IService<ZyUnit> {

    IPage<UnitVO> getListPage( UnitVO unitVO,IPage<UnitVO> page);

    String saveUnit(UnitVO unitVO);

//    String updateUnit(UnitVO unitVO);

    String deleteUnit(long unitId);

    String deleteUnitAll(List<Long> unitIds);

    /**
     * 根据buildingName查询对应单元
     * @param buildingName
     * @return
     */
    List<ZyUnit> selectUnit(String buildingName);
}
